package cn.bbs.serviceimpl;

import cn.bbs.mapper.BbsMapper;
import cn.bbs.pojo.BbsDetail;
import cn.bbs.pojo.BbsSort;
import cn.bbs.service.BbsService;
import com.alibaba.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class BbsServiceImpl implements BbsService {
    @Resource
    private BbsMapper bbsMapper;

    @Override
    public List<BbsDetail> getBbsListBySortId(Integer sortId) {
        return bbsMapper.getBbsListBySortId(sortId);
    }

    @Override
    public int addBbs(BbsDetail bbsDetail) {
        return bbsMapper.addBbs(bbsDetail);
    }

    @Override
    public List<BbsSort> getBbsSortList() {
        return bbsMapper.getBbsSortList();
    }
}
